<?php
/*
 * [JINYUN!] (C)2001-2099 Jinyunweb.com
 * This is NOT a freeware, use is subject to license terms
 * $Id: 2017-12-13 03:39:35 apple $
 插件菜单
*/
defined('BY_JYA') or exit('error');
$plugins=$this->plugins();
foreach($plugins as $ki=>&$item){
	$item['child']=$item['list'];
	unset($item['list']);
	foreach($item['child'] as $k=>&$p){
		if(!$p['is_install']){
			unset($item['child'][$k]);
		}else{
			if($p['actionurl']){
				$p['url']=$p['actionurl'];
			}else{
				$p['url']=$p['name'].'/basic.module_home/';
			}
		}
	}
}
$tools=$this->tools();
foreach($tools as $ki=>&$item){
	$item['child']=$item['list'];
	unset($item['list']);
	foreach($item['child'] as $k=>&$p){
		if(!$p['is_install']){
			unset($item['child'][$k]);
		}else{
			if($p['actionurl']){
				$p['url']=$p['actionurl'];
			}else{
				$p['url']=$p['name'].'/basic.module_home/';
			}
		}
	}
}
// 是主应用时的菜单
$menus=array(
		array('title'=>'平台概况','icon'=>'fa-home','url'=>'jy_quanhuo/index/','child'=>array(
			array('title'=>'概况','child'=>array(
				array('url'=>'jy_quanhuo/index/','title'=>'平台概况'),
			)),
			array('title'=>'活动退款','child'=>array(
				array('url'=>'jy_merch/refund/','title'=>'退款设置'),
				array('url'=>'jy_merch/order.game_refund/','title'=>'活动退款'),
			)),
			array('title'=>'平台消息管理','child'=>array(
				array('url'=>'jy_quanhuo/message/liuyan/','title'=>'留言消息'),
				array('url'=>'jy_quanhuo/message/tousu/','title'=>'投诉建议'),
			)),
			array('title'=>'入口管理','child'=>array(
				array('url'=>'jy_quanhuo/basic.module_home/cover/ac=index&type=3','title'=>'平台入口'),
				array('url'=>'jy_quanhuo/basic.module_home/cover/ac=myhome&type=3','title'=>'会员入口'),
			)),
		)),
		array('title'=>'营销/工具','isplugin'=>1,'fa'=>'icon-box','url'=>'jy_quanhuo/plugins/','child'=>$plugins),
		array('title'=>'活动管理','icon'=>'fa-users','url'=>'jy_quanhuo/group/','child'=>array(
			array('title'=>'活动主题','child'=>array(
				array('url'=>'jy_quanhuo/group/','title'=>'活动分类'),
				array('url'=>'jy_quanhuo/item/','title'=>'活动列表'),
				array('url'=>'jy_quanhuo/orderlog/','title'=>'参与记录'),
				array('url'=>'jy_quanhuo/msglog/','title'=>'留言记录'),
			)),
			array('title'=>'审核活动','child'=>array(
				array('url'=>'jy_quanhuo/item_nocheck//','title'=>'待审核主题'),
				array('url'=>'jy_quanhuo/msglog_nocheck/','title'=>'待审核留言'),
			)),
		)),
		array('title'=>'内容图库','icon'=>'fa-users','url'=>'jy_quanhuo/tukus/','child'=>array(
			array('title'=>'图库管理','child'=>array(
				array('url'=>'jy_quanhuo/tukus/','title'=>'图库列表'),
			)),
		)),
		array('title'=>'商户管理','icon'=>'fa-users','url'=>'jy_merch/index/','child'=>array(
			array('title'=>'商户管理','child'=>array(
				array('url'=>'jy_merch/index/','title'=>'商户列表'),
				array('url'=>'jy_merch/cate/','title'=>'商户分类'),
				array('url'=>'jy_merch/group/','title'=>'商户分组'),
				array('url'=>'jy_merch/goods/','title'=>'商品管理'),
				array('url'=>'jy_merch/order.list/','title'=>'商户订单'),
				array('url'=>'jy_merch/order.refund/','title'=>'退款订单'),
				array('url'=>'jy_merch/order.game_refund/','title'=>'活动退款'),
				array('url'=>'jy_merch/tihuo/','title'=>'提货点'),
			)),
			array('title'=>'VIP开通','child'=>array(
				array('url'=>'jy_merch/viporder/','title'=>'列表'),
			)),
			array('title'=>'入驻申请','child'=>array(
				array('url'=>'jy_merch/ruzhu/','title'=>'入驻申请'),
				array('url'=>'jy_merch/basic.module_home/cover/ac=manage.login','title'=>'商户PC/手机登录'),
				
			)),
			array('title'=>'提现申请','child'=>array(
				array('url'=>'jy_merch/tixian/','title'=>'提现申请'),
			)),
			array('title'=>'招商员','child'=>array(
				array('url'=>'jy_merch/zhaoshang.index/','title'=>'招商概况'),
				array('url'=>'jy_merch/basic.module_home/cover/ac=zhaoshang.index','title'=>'招商入口'),
				array('url'=>'jy_merch/zhaoshang.list/','title'=>'招商员管理'),
				array('url'=>'jy_merch/zhaoshang.commission/','title'=>'佣金管理'),
				array('url'=>'jy_merch/zhaoshang.balance/','title'=>'结算管理'),
				array('url'=>'jy_merch/zhaoshang.goods/','title'=>'商品独立分佣'),
				array('url'=>'jy_merch/zhaoshang.level/','title'=>'招商员等级'),
				array('url'=>'jy_merch/zhaoshang.setting/','title'=>'基本设置'),
				array('url'=>'jy_merch/zhaoshang.page_setting/','title'=>'样式设置'),
				array('url'=>'jy_merch/zhaoshang.apply_setting/','title'=>'招商员申请页'),
			)),
			array('title'=>'设置','child'=>array(
				array('url'=>'jy_merch/setting/','title'=>'基本设置'),
				array('url'=>'jy_merch/refund/','title'=>'退款设置'),
				array('url'=>'jy_merch/diyfrom/','title'=>'自定义表单'),
				array('url'=>'jy_diypage/index//basicname=jy_merch','title'=>'商户DIY页面'),
				array('url'=>'jy_merch/fansxieyi/','title'=>'会员协议'),
				array('url'=>'core/setting.msgset/list/plugin_name=jy_merch','title'=>'消息开启设置'),
				array('url'=>'core/setting.msgtpl/list/plugin_name=jy_merch','title'=>'微信模板库'),
			)),
			array('title'=>'入口','child'=>array(
				array('url'=>'jy_merch/basic.module_home/cover/ac=register','title'=>'申请入驻'),
				array('url'=>'jy_merch/basic.module_home/cover/ac=index','title'=>'首页入口'),
				array('url'=>'jy_merch/basic.module_home/cover/ac=manage.login','title'=>'商户入口'),
				array('url'=>'jy_merch/basic.module_home/cover/ac=game','title'=>'活动入口'),
			)),
		)),
		array('title'=>'粉丝会员','icon'=>'fa-users','url'=>'jy_quanhuo/member/','child'=>array(
			array('title'=>'会员管理','child'=>array(
				array('url'=>'jy_quanhuo/member/','title'=>'会员列表'),
				array('url'=>'jy_quanhuo/fromuser/','title'=>'上下关系'),
				array('url'=>'jy_weishop/member.level/','title'=>'会员等级'),
				array('url'=>'jy_weishop/member.label/','title'=>'标签组'),
				array('url'=>'jy_weishop/member.rank/','title'=>'排行榜设置'),
			)),
			array('title'=>'升级日志','child'=>array(
				array('url'=>'jy_weishop/member.log/','title'=>'升级日志'),
			)),
			array('title'=>'参与记录','child'=>array(
				//array('url'=>'jy_quanhuo/sharelog/list/','title'=>'参与记录'),
				//array('url'=>'jy_quanhuo/feelog/list/','title'=>'付费记录'),
				array('url'=>'core/member.creditlog/','title'=>'积分余额记录'),
			)),
		)),
		array('title'=>'财务管理','icon'=>'fa-users','url'=>'jy_quanhuo/commission/','child'=>array(
			array('title'=>'佣金管理','child'=>array(
				array('url'=>'jy_quanhuo/commission/','title'=>'佣金管理'),
				array('url'=>'jy_quanhuo/balance/','title'=>'提现记录'),
			)),
			array('title'=>'提现管理','child'=>array(
				array('url'=>'core/member.tixian/','title'=>'余额提现列表'),
				array('url'=>'core/member.red_pack/list/','title'=>'余额红包列表'),
				array('url'=>'core/member.red_pack/outlog/','title'=>'余额红包提现'),
			)),
		)),
		array('title'=>'平台设置','icon'=>'fa-gear','url'=>'jy_quanhuo/setting/','child'=>array(
			array('title'=>'系统设置','child'=>array(
				array('url'=>'jy_quanhuo/setting/','title'=>'基本设置'),
				array('url'=>'jy_merch/xieyi/','title'=>'商户协议'),
			)),
			array('title'=>'推荐方案','child'=>array(
				array('url'=>'jy_quanhuo/fangan/','title'=>'方案列表'),
			)),
			
		)),
);
return $menus ;

